﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RegisterPsychologist.aspx.cs" Inherits="Internet_Deliver_Therapy.Views.Admin.RegisterPsychologist" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">&nbsp;&nbsp;
    RESGISTER NEW PSYCHOLOGIST <br />
    <p class="text-danger">
        <asp:Literal runat="server" ID="ErrorMessage" />
    </p>
    <asp:ValidationSummary runat="server" CssClass="text-danger" />
    Please fill in the following fields.<br />
    *Mandatory field *Password has to be alpha numeric with min. 6 characters<br />
    <asp:Table ID="Table1" runat="server">
        <asp:TableRow>
            <asp:TableHeaderCell><asp:Label ID="Label1" runat="server" Text="First Name (Given Name)*"></asp:Label></asp:TableHeaderCell>
            <asp:TableCell>
                <asp:TextBox ID="tbFirstName" runat="server" Text="Harry"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbFirstName" CssClass="text-danger" ErrorMessage="The First Name field is required." />
            </asp:TableCell>
            <asp:TableHeaderCell><asp:Label ID="Label2" runat="server" Text="Gender*"></asp:Label></asp:TableHeaderCell> 
            <asp:TableCell>
                <asp:DropDownList ID="ddlGender" runat="server" />
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableHeaderCell><asp:Label ID="Label3" runat="server" Text="Last Name (Surname)*"></asp:Label></asp:TableHeaderCell>
            <asp:TableCell>
                <asp:TextBox ID="tbLastName" runat="server" Text="Potter"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbLastName" CssClass="text-danger" ErrorMessage="The Last Name field is required." />
            </asp:TableCell>   
            <asp:TableHeaderCell><asp:Label ID="Label4" runat="server" Text="Race*"></asp:Label></asp:TableHeaderCell> 
            <asp:TableCell>
                <asp:TextBox ID="tbRace" runat="server" Text="British"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbRace" CssClass="text-danger" ErrorMessage="The Race field is required." />
            </asp:TableCell>
        </asp:TableRow>        
        <asp:TableRow>
            <asp:TableHeaderCell><asp:Label ID="Label5" runat="server" Text="NRIC/Fin*"></asp:Label></asp:TableHeaderCell>
            <asp:TableCell>
                <asp:TextBox ID="tbNRIC" runat="server" Text="S1234567C"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbNRIC" CssClass="text-danger" ErrorMessage="The NRIC/Fin field is required." />
            </asp:TableCell>   
            <asp:TableHeaderCell><asp:Label ID="Label6" runat="server" Text="Birth Date*"></asp:Label></asp:TableHeaderCell> 
            <asp:TableCell>
                <script type="text/javascript">
                    window.onload = function () {
                        populatedropdown("daydropdown", "monthdropdown", "yeardropdown")
                        populateEmploymentdropdown("daydropdown2", "monthdropdown2", "yeardropdown2")
                    }
                </script>
                <select id="daydropdown" name="daydropdown"></select><select id="monthdropdown" name="monthdropdown"></select><select id="yeardropdown" name="yeardropdown"></select>
            </asp:TableCell>
        </asp:TableRow>        
        <asp:TableRow>
            <asp:TableHeaderCell><asp:Label ID="Label7" runat="server" Text="Mobile No.*"></asp:Label></asp:TableHeaderCell>
            <asp:TableCell>
                <asp:TextBox ID="tbMobileNo" runat="server" Text="98765432"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbMobileNo" CssClass="text-danger" ErrorMessage="The Mobile No. field is required." />
            </asp:TableCell>
        </asp:TableRow>        
        <asp:TableRow>
            <asp:TableHeaderCell><asp:Label ID="Label8" runat="server" Text="Office No.*"></asp:Label></asp:TableHeaderCell>
            <asp:TableCell>
                <asp:TextBox ID="tbOfficeNo" runat="server" Text="65558828"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbOfficeNo" CssClass="text-danger" ErrorMessage="The Office No. field is required." />
            </asp:TableCell>   
            <asp:TableHeaderCell><asp:Label ID="Label9" runat="server" Text="Email Address*"></asp:Label></asp:TableHeaderCell>
            <asp:TableCell>
                <asp:TextBox ID="tbEmail" runat="server" Text="harrypotter@KTPH.com"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbEmail" CssClass="text-danger" ErrorMessage="The Email field is required." />
                <asp:RegularExpressionValidator runat="server" ControlToValidate="tbEmail" CssClass="text-danger" Display="Dynamic" 
                    ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="Please enter a valid Email" />
            </asp:TableCell>
         </asp:TableRow>        
        <asp:TableRow>
            <asp:TableHeaderCell><asp:Label ID="Label10" runat="server" Text="Designation*"></asp:Label></asp:TableHeaderCell> 
            <asp:TableCell>
                <asp:TextBox ID="tbDesignation" runat="server" Text="Psychiatrist"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbDesignation" CssClass="text-danger" ErrorMessage="The Designation field is required." />
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableHeaderCell><asp:Label ID="Label11" runat="server" Text="Upload Photo*"></asp:Label></asp:TableHeaderCell>
            <asp:TableCell>
                <asp:Button ID="btnProfilePicture" runat="server" Text="Choose an image..." /> *File size: 1MB
            </asp:TableCell>
            <asp:TableHeaderCell><asp:Label ID="Label12" runat="server" Text="Employment Date*"></asp:Label></asp:TableHeaderCell>
            <asp:TableCell>
                <select id="daydropdown2" name="daydropdown2"></select><select id="monthdropdown2" name="monthdropdown2"></select><select id="yeardropdown2" name="yeardropdown2"></select>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    <br />
    <asp:Button ID="btnBack" runat="server" Text="Back" />  <asp:Button ID="btnRegister" runat="server" Text="Register" OnClick="Register_Click"/>
</asp:Content>
